'use strict';

angular.module('BlurAdmin', [
        'ngAnimate',
        'angular-storage',
        'ui.bootstrap',
        'ui.sortable',
        'ui.router',
        'ngTouch',
        'toastr',
        'smart-table',
        "xeditable",
        'ui.slimscroll',
        'ngJsTree',
        'angular-progress-button-styles',
        'cfp.loadingBar',
        'BlurAdmin.theme',
        'BlurAdmin.pages'
])
    .config(commonConfig)

    //.constant('API',"http://www.hxpeng.com/kinder")
    .constant('API',"http://192.168.1.204/kinder")
    .constant('BASEURL',"/admin")
    //常量枚举类型

    .constant('Constants', {
        memberType: [
            {
                key:"1",
                value:"教师"
            },
            {
                key:"2",
                value:"家长"
            },
            {
                key:"3",
                value:"学生"
            }
        ],
        memberSex: {
            1:'男',
            0:'女'
        }
    });



    /**
     * 全局插件基础设置
     * @param $urlRouterProvider
     * @param $locationProvider
     * @param storeProvider
     */
    function commonConfig($urlRouterProvider, $locationProvider, storeProvider){
        //storage 设置为会话级别，关闭浏览器即过期
        // Store defaults to localStorage but we can set sessionStorage or cookieStorage.
        storeProvider.setStore('sessionStorage');
        //取消路径中的#
        //$locationProvider.html5Mode(true);
        //$urlRouterProvider.otherwise("/member/bind");
    };
;


















